<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组的push&pop&shift方法</title>
</head>
<body>
<script>
    var myarray = ["小黑","盈盈"];
    myarray.push("小白");
    console.log(myarray);
    myarray.shift();
    console.log(myarray);
</script>
</body>
</html>